import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/layout',
        name: 'layout',
        component: () => import( '../views/LayOut.vue')
    },

    {
        path: '/icon',
        name: 'icon',
        component: () => import( '../views/IconView.vue')
    },
    {
        path: '/btn',
        name: 'btn',
        component: () => import( '../views/ButtonView.vue')
    }
    ,
    {
        path: '/form',
        name: 'form',
        component: () => import( '../views/FormView.vue')
    },
    {
        path: '/table',
        name: 'table',
        component: () => import( '../views/TableView.vue')
    },
    {
        path: '/message',
        name: 'message',
        component: () => import( '../views/MessageView.vue')
    },
    {
        path: '/axios',
        name: 'axios',
        component: () => import( '../views/AxiosView.vue')
    }
]

const router = new VueRouter({
    routes
})

export default router
